package cn.mccraft.uide.api.property.value;

import java.math.BigDecimal;
import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;

public class BigDecimalValue extends BaseValue<BigDecimal>{
	
	public BigDecimalValue() {}
	
	public BigDecimalValue(BigDecimal initialValue) {
		super(initialValue);
	}

	@Override
	public JsonElement serialize() {
		return new JsonPrimitive(getValue());
	}

	@Override
	public void deserialize(JsonElement jsonElement) {
		setValue(jsonElement.getAsBigDecimal());
	}
}
